import request from '../utils/request'
import { auth } from './url'

/* 注册 */
export const signUp = (data) => request.post(auth.signup, data)
/* 登录 */
export const signIn = (data) => request.post(auth.signin, data)

/* 退出登录 */
export const logout = () => request.get(auth.logout)

/* 获取验证码 */
export const getCaptcha = () => request.get(auth.captcha)
